<template>
  <el-icon :size="size">
    <component :is="ElementPlusIconsVue[name]"></component>
  </el-icon>
</template>

<script lang="ts" setup>
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const props = defineProps({
  name: {
    type: String,
    require: true
  },
  size: {
    type: String
  }
})
</script>

<style lang="less" scoped></style>
